package com.audaque.springboot.foshanupload.authcore.model.currentUser;

import java.io.Serializable;

public class OptWrap<P> implements Serializable {
    private static final long serialVersionUID = 1L;

    private P value;// 其他业务参数
    private OptContext optContext;// 当前操作的用户

    public OptWrap() {

    }

    public OptWrap(P value) {
        this.value = value;
        this.optContext = OptContext.ROBOT;
    }

    public OptWrap(P value, OptContext optContext) {
        this.value = value;
        this.optContext = optContext;
    }

    public P getValue() {
        return value;
    }

    public void setValue(P value) {
        this.value = value;
    }

    public OptContext getOptContext() {
        return optContext;
    }

    public void setOptContext(OptContext optContext) {
        this.optContext = optContext;
    }

}
